Adwaita: fix glitch in fine-tune scrollbar theming
authorCosimo Cecchi <cosimoc@gnome.org>
Sat, 5 Mar 2016 20:04:52 +0000 (12:04 -0800)
committerCosimo Cecchi <cosimoc@gnome.org>
Sat, 5 Mar 2016 20:05:26 +0000 (12:05 -0800)
The fine-tune mode should not change the overall dimensions of the
scrollbar.

gtk/theme/Adwaita/_common.scss
gtk/theme/Adwaita/gtk-contained-dark.css
gtk/theme/Adwaita/gtk-contained.css

index a45b949c9183e84ce2332d807699ea2c6fef2315..68e9bf3a7ab0bea391dac0ce1ea6a9efb0080959 100644 (file)
@@ -2061,10 +2061,14 @@ scrollbar {
     &:disabled { background-color: transparent; }
   }
 
-  &.fine-tune slider {
-    min-width: 4px;
-    min-height: 4px;
-    border-width: 6px;
+  &.fine-tune {
+    slider {
+      min-width: 4px;
+      min-height: 4px;
+    }
+
+    &.horizontal slider { border-width: 5px 4px; }
+    &.vertical slider { border-width: 4px 5px; }
   }
 
   &.overlay-indicator {
index fa44278bbbf2b0e36a938f55981ec7c620b93b4b..cef3c771be520ff95491122bd0b9cd47e575d226 100644 (file)
@@ -2212,8 +2212,11 @@ scrollbar {
       background-color: transparent; }
   scrollbar.fine-tune slider {
     min-width: 4px;
-    min-height: 4px;
-    border-width: 6px; }
+    min-height: 4px; }
+  scrollbar.fine-tune.horizontal slider {
+    border-width: 5px 4px; }
+  scrollbar.fine-tune.vertical slider {
+    border-width: 4px 5px; }
   scrollbar.overlay-indicator:not(.dragging):not(.hovering) {
     border-color: transparent;
     opacity: 0.4;
index 4f0c68485f690318d4b7dbe08d271cd5caba2cc9..7e8bb228237f42f21b4ce1a0ddc59632b3ad6f96 100644 (file)
@@ -2222,8 +2222,11 @@ scrollbar {
       background-color: transparent; }
   scrollbar.fine-tune slider {
     min-width: 4px;
-    min-height: 4px;
-    border-width: 6px; }
+    min-height: 4px; }
+  scrollbar.fine-tune.horizontal slider {
+    border-width: 5px 4px; }
+  scrollbar.fine-tune.vertical slider {
+    border-width: 4px 5px; }
   scrollbar.overlay-indicator:not(.dragging):not(.hovering) {
     border-color: transparent;
     opacity: 0.4;